package com.seari.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seari.bean.RolePrivilege;
import com.seari.mapper.RolePrivilegeMapper;
import com.seari.service.RolePrivilegeService;

@Service("RolePrivilegeService")
public class RolePrivilegeServiceImpl implements RolePrivilegeService {
	
	@Autowired
	private RolePrivilegeMapper rolePrivilegeMapper;
	
	

	@Override
	public int addRolePrivilege(RolePrivilege rolePrivilege) {
		// TODO Auto-generated method stub
		return rolePrivilegeMapper.addRolePrivilege(rolePrivilege);
	}

	@Override
	public int deleteRolePrivilege(int uurid) {
		// TODO Auto-generated method stub
		return rolePrivilegeMapper.deleteRolePrivilegeByUurid(uurid);
	}

	@Override
	public int deleteRolePrivilegeByUupid(int uupid) {
		// TODO Auto-generated method stub
		return rolePrivilegeMapper.deleteRolePrivilegeByUupid(uupid);
	}

	
	
	
	
}
